module.exports = {
    base: "/my-blog/",
    locales: {
        "/": {
            lang: "zh-CN",
        },
    },
    port: "8099", //端口号
    title: "Justic",
    description: "最是人间留不住，朱颜辞镜花辞树",
    dest: "public",
    head: [
        ["link", { rel: "icon", href: "/bitbug_favicon.ico/" }],
        [
            "meta",
            {
                name: "viewport",
                content: "width=device-width,initial-scale=1,user-scalable=no",
            },
        ],
    ],
    theme: "reco",
    themeConfig: {
        author: "Justic",
        codeTheme: "solarizedlight",
        nav: [
            { text: "主页", link: "/", icon: "reco-home" },
            {
                text: "项目",
                icon: "reco-menu",
                items: [{
                    text: "数据可视化系统",
                    link: "https://jiaxint.github.io/jyEcharts/",
                    icon: "reco-coding",
                }, ],
            },
            {
                text: "时间轴",
                link: "/timeline/",
                icon: "reco-date",
            },
            {
                text: "工具推荐",
                icon: "reco-message",
                items: [{
                        text: "蓝湖",
                        link: "https://lanhuapp.com",
                        icon: "reco-coding",
                    },
                    {
                        text: "正则表达式手册",
                        link: "https://tool.oschina.net/uploads/apidocs/jquery/regexp.html",
                        icon: "reco-coding",
                    },
                    {
                        text: "阮一峰ES6 入门教程",
                        link: "https://es6.ruanyifeng.com/",
                        icon: "reco-coding",
                    },
                    {
                        text: "廖雪峰JavaScript教程",
                        link: "https://www.liaoxuefeng.com/wiki/1022910821149312",
                        icon: "reco-coding",
                    },
                ],
            },
            {
                text: "关于",
                icon: "reco-message",
                items: [{
                        text: "GitHub",
                        link: "https://github.com/JIAXInT",
                        icon: "reco-github",
                    },
                    {
                        text: "码云",
                        link: "https://gitee.com/JIAXInT",
                        icon: "reco-mayun",
                    },
                    {
                        text: "掘金",
                        link: "https://juejin.cn/user/985606478639661",
                        icon: "reco-juejin",
                    },
                ],
            },
        ],
        subSidebar: "auto",
        sidebar: {},
        type: "blog",
        // 博客设置
        blogConfig: {
            category: {
                location: 2, // 在导航栏菜单中所占的位置，默认2
                text: "分类", // 默认 “分类”
            },
            tag: {
                location: 3, // 在导航栏菜单中所占的位置，默认3
                text: "标签", // 默认 “标签”
            },
        },

        logo: "/logo.jpg",
        // 搜索设置
        search: true,
        searchMaxSuggestions: 10,
        // 自动形成侧边导航
        sidebar: "auto",
        // 最后更新时间
        lastUpdated: "最后更新时间",
        // 作者
        author: "Justic",
        // 作者头像
        authorAvatar: "/avatar.jpg",
        // 备案号
        record: " Justic",
        // 项目开始时间
        startYear: "2019",
        /**
         * 密钥 (if your blog is private)
         */

        // keyPage: {
        //   keys: ['your password'],
        //   color: '#42b983',
        //   lineColor: '#42b983'
        // },

        /**
         * valine 设置 (if you need valine comment )
         */

        valineConfig: {
            appId: "uVX1RdW5NvC6zEnfjERU7mAb-gzGzoHsz", // your appId
            appKey: "DzzpF7cokBfNP107e5OjMKtQ", // your appKey
        },
    },
    markdown: {
        lineNumbers: true,
    },
    plugins: [
        [
            //先安装在配置， npm install @vuepress-reco/vuepress-plugin-kan-ban-niang --save
            "@vuepress-reco/vuepress-plugin-kan-ban-niang",
            {
                theme: [
                    // "blackCat",
                    // "whiteCat",
                    // "haru1",
                    // "haru2",
                    // "haruto",
                    // "koharu",
                    // "izumi",
                    // "shizuku",
                    // "wanko",
                    "miku",
                    // "z16",
                ],
                clean: true,
                messages: {
                    welcome: "我是Justic欢迎你的关注 ",
                    home: "心里的花，我想要带你回家。",
                    theme: "好吧，希望你能喜欢我的其他小伙伴。",
                    close: "再见哦",
                },
                width: 100,
                height: 200,
            },
        ],
        [
            //先安装在配置， npm install @vuepress-plugin-meting --save
            "meting",
            {
                metingApi: "https://api.i-meto.com/meting/api",
                meting: {
                    server: "netease", //
                    type: "playlist", //类型
                    mid: "5076309057", //id
                }, // 不配置该项的话不会出现全局播放器
                aplayer: {
                    lrcType: 3,
                    autoplay: true,
                },
            },
        ],
        [
            //彩带背景 先安装在配置， npm install vuepress-plugin-ribbon --save
            "ribbon",
            {
                size: 90, // width of the ribbon, default: 90
                opacity: 0.8, // opacity of the ribbon, default: 0.3
                zIndex: -1, // z-index property of the background, default: -1
            },
        ],
        [
            //鼠标点击特效 先安装在配置， npm install vuepress-plugin-cursor-effects --save
            "cursor-effects",
            {
                size: 3, // size of the particle, default: 2
                shape: ["circle"], // shape of the particle, default: 'star'
                zIndex: 999999999, // z-index property of the canvas, default: 999999999
            },
        ],
        [
            //动态标题 先安装在配置， npm install vuepress-plugin-dynamic-title --save
            "dynamic-title",
            {
                showIcon: "/favicon.ico",
                showText: "(/≧▽≦/)咦！又好了！",
                hideIcon: "/failure.ico",
                hideText: "(●—●)喔哟，崩溃啦！",
                recoverTime: 2000,
            },
        ],
        [
            //图片放大插件 先安装在配置， npm install @vuepress\plugin-medium-zoom --save
            "@vuepressplugin-medium-zoom",
            {
                selector: ".page img",
                delay: 1000,
                options: {
                    margin: 24,
                    background: "rgba(25,18,25,0.9)",
                    scrollOffset: 40,
                },
            },
        ],
        [
            //插件广场的流程图插件 先安装在配置 npm install vuepress-plugin-flowchart --save
            "flowchart",
        ],
        [
            //插件广场的sitemap插件 先安装在配置 npm install vuepress-plugin-sitemap --save
            "sitemap",
            {
                hostname: "https://www.glassysky.site",
            },
        ],
        [
            "@vuepress/pwa",
            {
                serviceWorker: true, //vuepress插件PWA 先安装在配置 npm install @vuepress/pwa --save
                updatePopup: {
                    message: "发现新内容可用",
                    buttonText: "刷新",
                },
            },
        ],
        [
            "vuepress-plugin-nuggets-style-copy",
            {
                copyText: "复制代码", //vuepress复制粘贴提示插件P 先安装在配置 npm install vuepress-plugin-nuggets-style-copy --save
                tip: {
                    content: "复制成功!",
                },
            },
        ],
        [
            //自动生成侧边栏
            "vuepress-plugin-auto-sidebar",
            {
                collapse: {
                    open: true,
                },
            },
        ],

        // [
        //     "@vuepress-yard/vuepress-plugin-window",
        //     {
        //         title: "公告", //vuepress公告插件 先安装在配置 npm install @vuepress-yard/vuepress-plugin-window --save
        //         contentInfo: {
        //             title: "欢迎进来的 🎉🎉🎉",
        //             needImg: true,
        //             imgUrl: "https://reinness.com/avatar.png",
        //             content: "喜欢博皮可以到博客园关注教程",
        //             contentStyle: "",
        //         },
        //         bottomInfo: {
        //             btnText: "关于",
        //             linkTo: "https://cnblogs.com/glassysky",
        //         },
        //         closeOnce: false,
        //     },
        // ],
    ],
};